package net.oschina.allchat.message.processing;

import net.oschina.allchat.protocol.core.ProtocolChain;

public interface IProcessingFactory {
	Object parse(String message);
	Object parse(String message, boolean stream);
	String translate(Object object);
	
	void register(ProtocolChain chain, ProcessingDescriptor<?> descriptor);
	void unregister(ProtocolChain chain);
}
